global class DeleteUtil{

Webservice static String deleteContracts(){

/*BatchDetail__c[] details=null;
details=[SELECT Id, Name FROM BatchDetail__c limit 50]; 
for(BatchDetail__c batches:details){
   
   try{
       delete batches;
   }catch(DmlException e){ 
    System.debug('The exception :'+e.getMessage());
   }  
   }*/
return 'deleted successfully';  
}
static testMethod void testHelloWorld() {

  System.assertEquals('deleted successfully', deleteContracts());

}

}